package com.moco.launcher.wifi;

import java.util.HashMap;
import java.util.Map;

import com.moco.launcher.R;

public class KeyBoardResource {
	
	public static Map<Integer, String> keyBoardMap = new HashMap<Integer,String>();

	public static int[] UpperKeyBtnIds=new int[] {
		R.id.key_upper_a_btn,R.id.key_upper_f_btn,R.id.key_upper_k_btn,
		R.id.key_upper_b_btn,R.id.key_upper_g_btn,R.id.key_upper_l_btn,R.id.key_upper_p_btn,
		R.id.key_upper_c_btn,R.id.key_upper_h_btn,R.id.key_upper_m_btn,R.id.key_upper_q_btn,
		R.id.key_upper_d_btn,R.id.key_upper_i_btn,R.id.key_upper_n_btn,R.id.key_upper_r_btn,
		R.id.key_upper_e_btn,R.id.key_upper_j_btn,R.id.key_upper_o_btn,R.id.key_upper_s_btn,
		R.id.key_upper_t_btn,R.id.key_upper_u_btn,R.id.key_upper_v_btn,R.id.key_upper_w_btn,
		R.id.key_upper_x_btn,R.id.key_upper_y_btn,R.id.key_upper_z_btn,R.id.key_upper_special_btn
	};
	
	public static int[] LowerKeyBtnIds=new int[] {
		R.id.key_lower_a_btn,R.id.key_lower_f_btn,R.id.key_lower_k_btn,
		R.id.key_lower_b_btn,R.id.key_lower_g_btn,R.id.key_lower_l_btn,R.id.key_lower_p_btn,
		R.id.key_lower_c_btn,R.id.key_lower_h_btn,R.id.key_lower_m_btn,R.id.key_lower_q_btn,
		R.id.key_lower_d_btn,R.id.key_lower_i_btn,R.id.key_lower_n_btn,R.id.key_lower_r_btn,
		R.id.key_lower_e_btn,R.id.key_lower_j_btn,R.id.key_lower_o_btn,R.id.key_lower_s_btn,
		R.id.key_lower_t_btn,R.id.key_lower_u_btn,R.id.key_lower_v_btn,R.id.key_lower_w_btn,
		R.id.key_lower_x_btn,R.id.key_lower_y_btn,R.id.key_lower_z_btn,R.id.key_lower_special_btn
	};
	
	
	public static String getCharById(int ResId){
		if(keyBoardMap.containsKey(ResId))
			return keyBoardMap.get(ResId);
		return null;
	}
	public static int[] NumberKeyBtnIds = new int[]{
		R.id.key_number_0_btn,R.id.key_number_1_btn,R.id.key_number_2_btn,R.id.key_number_3_btn,
		R.id.key_number_4_btn,R.id.key_number_5_btn,R.id.key_number_6_btn,R.id.key_number_7_btn,
		R.id.key_number_8_btn,R.id.key_number_9_btn,
		R.id.key_symbol_factorial_btn,R.id.key_symbol_tail_btn,R.id.key_symbol_define_btn,
		R.id.key_symbol_dollar_btn,R.id.key_symbol_percent_btn,R.id.key_symbol_caret_btn,
		R.id.key_symbol_add_btn ,R.id.key_symbol_star_btn ,R.id.key_symbol_tilde_btn ,R.id.key_symbol_leftb_btn ,
		R.id.key_symbol_rightb_btn ,R.id.key_symbol_comma_btn,R.id.key_symbol_point_btn ,R.id.key_symbol_questionm_btn ,
		R.id.key_symbol_rail_btn ,R.id.key_symbol_equal_btn,R.id.key_symbol_special_btn 
	};
	
	static {
		keyBoardMap.put(UpperKeyBtnIds[0], "A");
		keyBoardMap.put(UpperKeyBtnIds[1], "F");
		keyBoardMap.put(UpperKeyBtnIds[2], "K");
		keyBoardMap.put(UpperKeyBtnIds[3], "B");
		keyBoardMap.put(UpperKeyBtnIds[4], "G");
		keyBoardMap.put(UpperKeyBtnIds[5], "L");
		keyBoardMap.put(UpperKeyBtnIds[6], "P");
		keyBoardMap.put(UpperKeyBtnIds[7], "C");
		keyBoardMap.put(UpperKeyBtnIds[8], "H");
		keyBoardMap.put(UpperKeyBtnIds[9], "M");
		keyBoardMap.put(UpperKeyBtnIds[10], "Q");
		keyBoardMap.put(UpperKeyBtnIds[11], "D");
		keyBoardMap.put(UpperKeyBtnIds[12], "I");
		keyBoardMap.put(UpperKeyBtnIds[13], "N");
		keyBoardMap.put(UpperKeyBtnIds[14], "R");
		keyBoardMap.put(UpperKeyBtnIds[15], "E");
		keyBoardMap.put(UpperKeyBtnIds[16], "J");
		keyBoardMap.put(UpperKeyBtnIds[17], "O");
		keyBoardMap.put(UpperKeyBtnIds[18], "S");
		keyBoardMap.put(UpperKeyBtnIds[19], "T");
		keyBoardMap.put(UpperKeyBtnIds[20], "U");
		keyBoardMap.put(UpperKeyBtnIds[21], "V");
		keyBoardMap.put(UpperKeyBtnIds[22], "W");
		keyBoardMap.put(UpperKeyBtnIds[23], "X");
		keyBoardMap.put(UpperKeyBtnIds[24], "Y");
		keyBoardMap.put(UpperKeyBtnIds[25], "Z");
		keyBoardMap.put(UpperKeyBtnIds[26], " ");
		
		keyBoardMap.put(LowerKeyBtnIds[0], "a");
		keyBoardMap.put(LowerKeyBtnIds[1], "f");
		keyBoardMap.put(LowerKeyBtnIds[2], "k");
		keyBoardMap.put(LowerKeyBtnIds[3], "b");
		keyBoardMap.put(LowerKeyBtnIds[4], "g");
		keyBoardMap.put(LowerKeyBtnIds[5], "l");
		keyBoardMap.put(LowerKeyBtnIds[6], "p");
		keyBoardMap.put(LowerKeyBtnIds[7], "c");
		keyBoardMap.put(LowerKeyBtnIds[8], "h");
		keyBoardMap.put(LowerKeyBtnIds[9], "m");
		keyBoardMap.put(LowerKeyBtnIds[10], "q");
		keyBoardMap.put(LowerKeyBtnIds[11], "d");
		keyBoardMap.put(LowerKeyBtnIds[12], "i");
		keyBoardMap.put(LowerKeyBtnIds[13], "n");
		keyBoardMap.put(LowerKeyBtnIds[14], "r");
		keyBoardMap.put(LowerKeyBtnIds[15], "e");
		keyBoardMap.put(LowerKeyBtnIds[16], "j");
		keyBoardMap.put(LowerKeyBtnIds[17], "o");
		keyBoardMap.put(LowerKeyBtnIds[18], "s");
		keyBoardMap.put(LowerKeyBtnIds[19], "t");
		keyBoardMap.put(LowerKeyBtnIds[20], "u");
		keyBoardMap.put(LowerKeyBtnIds[21], "v");
		keyBoardMap.put(LowerKeyBtnIds[22], "w");
		keyBoardMap.put(LowerKeyBtnIds[23], "x");
		keyBoardMap.put(LowerKeyBtnIds[24], "y");
		keyBoardMap.put(LowerKeyBtnIds[25], "z");
		keyBoardMap.put(LowerKeyBtnIds[26], " ");
		
		//number
		keyBoardMap.put(NumberKeyBtnIds[0], "0");
		keyBoardMap.put(NumberKeyBtnIds[1], "1");
		keyBoardMap.put(NumberKeyBtnIds[2], "2");
		keyBoardMap.put(NumberKeyBtnIds[3], "3");
		keyBoardMap.put(NumberKeyBtnIds[4], "4");
		keyBoardMap.put(NumberKeyBtnIds[5], "5");
		keyBoardMap.put(NumberKeyBtnIds[6], "6");
		keyBoardMap.put(NumberKeyBtnIds[7], "7");
		keyBoardMap.put(NumberKeyBtnIds[8], "8");
		keyBoardMap.put(NumberKeyBtnIds[9], "9");
		
		keyBoardMap.put(NumberKeyBtnIds[10], "!");
		keyBoardMap.put(NumberKeyBtnIds[11], "@");
		keyBoardMap.put(NumberKeyBtnIds[12], "#");
		keyBoardMap.put(NumberKeyBtnIds[13], "$");
		keyBoardMap.put(NumberKeyBtnIds[14], "%");
		keyBoardMap.put(NumberKeyBtnIds[15], "^");
		keyBoardMap.put(NumberKeyBtnIds[16], "&");
		keyBoardMap.put(NumberKeyBtnIds[17], "*");
		keyBoardMap.put(NumberKeyBtnIds[18], "_");
		keyBoardMap.put(NumberKeyBtnIds[19], "(");
		keyBoardMap.put(NumberKeyBtnIds[20], ")");
		keyBoardMap.put(NumberKeyBtnIds[21], ",");
		keyBoardMap.put(NumberKeyBtnIds[22], ".");
		keyBoardMap.put(NumberKeyBtnIds[23], "?");
		keyBoardMap.put(NumberKeyBtnIds[24], "-");
		keyBoardMap.put(NumberKeyBtnIds[25], "=");
		keyBoardMap.put(NumberKeyBtnIds[26], " ");
	}
	
	
	
}
